﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <div>Hello JS</div>

    <script>
        function Person(name) {
            this.name = name;
            this.sayName = function () {
                console.log(this.name);
            };
        }
        var person1 = new Person("Nicholas");
        person1.sayName();
    </script>
</body>
</html>
